# 加密（AES-256-CBC示例）
echo "密码" | openssl aes-256-cbc -salt -k 密钥 -base64
# 解密
echo "U2FsdGVkX18EytCXP4fVuYtUh2vcGkMnrxpVeULgFpKsmN8fnnZ/nnAhHQPIcemp" | openssl aes-256-cbc -d -k 密钥  -base64

# 编码
echo "密码" | base64
# 解码
echo "密文" | base64 -d



openssl genrsa -out private.pem 2048
提取公钥：openssl rsa -in private.pem -pubout -out public.pem
加密：echo "密码" | openssl rsautl -encrypt -oaep -pubin -inkey public.pem
解密：openssl rsautl -decrypt -inkey private.pem -in encrypted.dat